# Create your views here.
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response
from google.appengine.api import users

def default(request):
  user = users.GetCurrentUser()
  if user:
    pass
  else:
    message = 'Sorry, TODO only opens to Google Users, try to login '
    redirect_url = users.CreateLoginURL(reverse('todo.views.default'))
    return render_to_response('todo/redirect.html', locals())
  return render_to_response('todo/default.html', locals())

